package cn.lizemin.share.origin;

import cn.lizemin.share.origin.entity.Tile;

/**
 * @author lzm
 * @version 1.0
 * @description: 享元模式的原型
 * @date 2022/5/17 11:20
 */
public class Client {
    /**
     * 程序的入口
     */
    public static void main(String[] args) {
//        地图第一列绘制一些图块
        new Tile("河流", 10, 10).draw();
        new Tile("河流", 10, 20).draw();
        new Tile("道路", 10, 30).draw();
        new Tile("草地", 10, 40).draw();
        new Tile("草地", 10, 50).draw();
        new Tile("草地", 10, 60).draw();
        new Tile("草地", 10, 70).draw();
        new Tile("草地", 10, 80).draw();
        new Tile("道路", 10, 90).draw();
        new Tile("道路", 10, 100).draw();


    }


}
